package cn.edu.zjgsu.ito.controller;

import java.util.List;

import cn.edu.zjgsu.ito.service.AdminScoHistoryService;
import cn.edu.zjgsu.ito.service.ServiceFactory;

import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Record;

public class AdminScoHistoryController extends Controller {

	/**
	 * 学生历史成绩数据
	 * 杨昆鹏
	 */

	AdminScoHistoryService adminScoHistoryService = ServiceFactory.createAdminScoHistoryService();
	
	
	public void index(){
		
		List<Record> records = adminScoHistoryService.scoHistory();
		
		setAttr("stuGra",records);

		render("scorehistory.html");
	}
	
}
